//package com.wt.admin.service.ai.impl.mcp;//package com.wt.admin.service.ai.impl.mcp;
//
//import io.modelcontextprotocol.client.McpClient;
//import io.modelcontextprotocol.spec.McpSchema;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.ai.mcp.customizer.McpAsyncClientCustomizer;
//import org.springframework.stereotype.Component;
//
//import java.time.Duration;
//
//@Component
//@Slf4j
//public class CustomMcpAsyncClientCustomizer implements McpAsyncClientCustomizer {
//
//    @Override
//    public void customize(String name, McpClient.AsyncSpec spec) {
//        // Customize the request configuration
//        spec.requestTimeout(Duration.ofSeconds(10));
//        // 设置此客户端的服务器连接可以访问的根 URI。
//        McpSchema.Root c = new McpSchema.Root("C://","c盘");
//        McpSchema.Root d = new McpSchema.Root("D://","d盘");
//        spec.roots(c,d);
//
//    }
//
//}
